'use strict'
const Koa=require('koa')
const bodyparsrer=require('koa-bodyparser')
const cors=require('koa-cors')
const routerMiddle=require('./router/index')

let app=new Koa()

app.use(cors())
app.use(bodyparsrer())
app.use(routerMiddle())

let port=3000
app.listen(port)
console.log(`web服务器运行在：http://localhost:${port}`);